package cn.cqie.attendance.teacher.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wqh
 * @date 2021/7/6 15:17
 */
@Data
@Accessors(chain = true)
@ApiModel(value="InsertHomeworkReq对象", description="插入作业请求参数")
public class InsertHomeworkReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "作业主题")
    private String homeworkTheme;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "计划完成时间")
    private Date endTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "作业发布时间")
    private Date publishTime;

    @ApiModelProperty(value = "课程id")
    private Integer courseId;

    @ApiModelProperty(value = "作业类型")
    private Integer homeworkType;

//    @ApiModelProperty(value = "小组")
//    private String[] groups;
//
//    @ApiModelProperty(value = "学生")
//    private String[] students;

    @ApiModelProperty(value = "作业内容")
    private String workContent;

    @ApiModelProperty(value = "作业发布教师ID")
    private Integer teacherId;

    //分配作业给具体学生
    @ApiModelProperty(value = "小组Id(字符串形式：1,2,3)")
    private String groupId;

    @ApiModelProperty(value = "学生Id(字符串形式：1,2,3)")
    private String stuId;

    @ApiModelProperty(value = "作业附件")
    private String address;

}
